<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

/* @var $this yii\web\View */
$this->title = '同业人员注册';
$this->params['breadcrumbs'][] = $this->title;
?>
		
<style type="text/css">
	.tel{color: #FFF;}
	.mui-table-view-cell:after{left:0}
	.text-center{text-align: center;}
	.test{padding: 15px 0;}
	.title{color: #f0ad4e;font-weight: bold;}
	
	.mui-icon{font-size: 30px}
	.mui-bar-transparent{top:0;background-color:rgba(247,247,247,0);-webkit-box-shadow:none;box-shadow:none}
	.mui-btn-block{padding: 5px 0px;}
	.menu-list{color: #FFF;margin-top: 40px;}
	.menu-list .mui-icon{font-size: 20px;}

	.link-area{margin:15px;}
	.text-center{text-align: center;}
	.mui-input-group .mui-input-row:after{left: 0}
	.mui-bar-transparent{top:0;background-color:rgba(247,247,247,0);-webkit-box-shadow:none;box-shadow:none}
	#login-form{margin-top: 20px;}

	.help-block.help-block-error{color: red;text-align: center;}
	.has-error input{border: 1px solid red !important;}
	#forgetPassword{color: #626262;}
	.mui-input-group:before{background-color:#efeff4;}
    .mui-input-group:after{background-color:#efeff4;}
    .mui-btn-primary{background-color:rgb(41, 167, 226);border:1px solid rgb(41, 167, 226); }
</style>


<div class="mui-content">
		<div class="mui-scroll">

			<div class="mui-row">
				<div class="mui-col-xs-12" style="text-align: center;margin-top:40px;">
					<img src="/img/login.png" style="width:80%;" >
				</div>	
			</div>
			

			   <div class="mui-row" style="margin-top: 1rem;">
                <div class="mui-col-xs-12" style="width: 90%;margin-left: 5%" >
                        <?php $form = ActiveForm::begin([]); ?>
                        	 <div class="mui-input-group mui-input-row" style="background-color: #efeff4;"> 
                                <?= $form->field($model, 'mail')->textInput(['placeholder'=>'输入您的邮箱','style'=>'width:100%;background-color:#FFF;border:1px solid #ddd;','class'=>'mui-input-clear','type'=>'text'])->label(false); ?>
                            </div>

                            <div class="mui-input-group mui-input-row" style="background-color: #efeff4;"> 
                                <?= $form->field($model, 'phone')->textInput(['maxlength' => 11, 'placeholder'=>'输入您的手机号','style'=>'width:100%;background-color:#FFF;border:1px solid #ddd;','class'=>'mui-input-clear','type'=>'number'])->label(false); ?>
                            </div>

                            <div class="mui-input-group mui-input-row" style="background-color: #efeff4;"> 
                                <?= $form->field($model, 'name')->textInput(['placeholder'=>'输入您的姓名','style'=>'width:100%;background-color:#FFF;border:1px solid #ddd;','class'=>'mui-input-clear','type'=>'text'])->label(false); ?>
                            </div>

                            <div class="mui-input-group mui-input-row" style="background-color: #efeff4;"> 
                                <?= $form->field($model, 'company')->textInput(['placeholder'=>'输入您所属公司','style'=>'width:100%;background-color:#FFF;border:1px solid #ddd;','class'=>'mui-input-clear','type'=>'text'])->label(false); ?>
                            </div>

                            <div class="mui-input-group mui-input-row" style="background-color: #efeff4;">
                            	 <?= $form->field($model, 'password')->passwordInput(['maxlength' => 20, 'minlength'=> 6, 'placeholder'=>'输入密码','style'=>'background-color:#FFF;border:1px solid #ddd;','class'=>'mui-input-password'])->label(false) ?>
                            </div>

                            <div class="mui-input-group mui-input-row" style="background-color: #efeff4;">
                            	  <?= $form->field($model, 'confirmPassword')->passwordInput(['maxlength' => true, 'placeholder'=>'确认密码','style'=>'background-color:#FFF;border:1px solid #ddd;','class'=>'mui-input-password'])->label(false) ?>
                            </div>

                            <div class="mui-col-xs-12" style="margin-bottom: 2rem">
                                <div class="link-area mui-pull-right">
                                        <a id='reg' style="color:rgb(41, 167, 226);" href="/member/member/login" data-link="as" >已有账号?立即登录</a> 
                                </div>
                                 <?= Html::submitButton('提交注册' , ['class'=>'mui-btn mui-btn-block mui-btn-primary']) ?>
                            </div>
                        <?php ActiveForm::end(); ?>
                </div>  
            </div>  
            
			
			
		</div>
</div>


<?php app\components\JsBlock::begin() ?>
<script type="text/javascript">

mui.init();
mui('body').on('tap','a[data-link="as"]',function(){document.location.href=this.href;});

</script>
<?php app\components\JsBlock::end() ?>		